package cn.com.guage.scala.learn.chapter04

import scala.io.StdIn

object Test01_IFElse01 {

  def main(args: Array[String]): Unit = {
    println("请输入您的年龄：")

    val age: Int = StdIn.readInt()

    // 1. 单分支
    if (age >= 18)
      println("成年")
    else
      println("未成年")
}}
